home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1023 b | 26 lines | [TEXT/GEOL] |
- Item 4455368 23-Nov-90 06:47PST
-
- From: CFI France - CFI Paris 11,IDV
-
- To: PHS Pinyon Hills Software, Schwartz,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: ? Want only 1 document…
-
- The methods that create documents are the DoMakeDocument Methods.
- The methods that call DoMakeDocument are the DoMenuCommand methods. You should
- ovveride the TApplication.DoMenuCommand method so that it checks if a document
- is already opened before is calls the DoMakeDocument method.
- I believe you should check for the cNewDocument command in the
- TApplication.DoMenuCommand method and do something like in pseudocode:
- if ((actualCommand = cNewDocument) AND (ThereisNOTadocument)) OR (actualCommand
- <> cNewDocument) THEN
- INHERITED DoMenucommand;
-
- in that case if there is no document yet, or if it's another command, will the
- inherited domenucommand will be called.
-
- Nico...
-
-